package com.bauer.activiti.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: weirui
 * @create: 2020-01-06 14:53
 **/
@Component("endEvent")
public class EndListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution execution) throws Exception {
        System.out.println(execution.getVariables());
    }
}
